package ldkxingzhe.ldkxingzhedemo.alarm;

import android.app.IntentService;
import android.content.Intent;

import ldkxingzhe.ldkxingzhedemo.utils.LogDemo;

/**
 * Created by ke on 15-9-20.
 */
public class LogService extends IntentService{

    private final static String TAG = LogService.class.getSimpleName();
    /**
     * Creates an IntentService.  Invoked by your subclass's constructor.
     *
     * @param name Used to name the worker thread, important only for debugging.
     */
    public LogService(String name) {
        super(name);
    }

    public LogService(){
        this(TAG);
    }

    @Override
    protected void onHandleIntent(Intent intent) {
        LogDemo.v(TAG,"onHandle Intent, and thread = " + Thread.currentThread());
        LogDemo.v(TAG,"flag = " + intent.getExtras());
    }
}
